package com.shop.shoporder.service.impl;

import com.shop.shoporder.entity.Classification;
import com.shop.shoporder.mapper.ClassificationMapper;
import com.shop.shoporder.mapper.ClassificationMapperCustom;
import com.shop.shoporder.service.ClassificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ClassificationServiceImpl")
public class ClassificationServiceImpl implements ClassificationService {

    @Autowired
    private ClassificationMapper classificationMapper;

    @Autowired
    private ClassificationMapperCustom classificationMapperCustom;

    @Override
    public Classification selectByPrimaryKey(Integer id)
    {
        return classificationMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Classification> selectPid(Classification record)
    {
        return classificationMapperCustom.selectPid(record);
    }

    @Override
    public int insertSelective(Classification record)
    {
        return classificationMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Classification record){return classificationMapper.updateByPrimaryKeySelective(record);}

}
